home *** CD-ROM | disk | FTP | other *** search
/ The World of Computer Software / The World of Computer Software.iso / quasrsql.zip / CREATE.SQL < prev    next >
Text File  |  1991-10-26  |  706b  |  35 lines

  1. create table s (
  2.   sno       char(5) not null,
  3.   sname     char(20),
  4.   status    smallint,
  5.   city      char(15),
  6.   unique (sno)
  7. );
  8. create table p (
  9.   pno       char(6) not null,
  10.   pname     char(20),
  11.   color     char(6),
  12.   weight    smallint,
  13.   city      char(15),
  14.   unique (pno)
  15. );
  16. create table j (
  17.   jno       char(4) not null,
  18.   jname     char(10),
  19.   city      char(15),
  20.   unique (jno)
  21. );
  22. create table sp (
  23.   sno       char(5) not null,
  24.   pno       char(6) not null,
  25.   qty       integer,
  26.   unique (sno, pno)
  27. );
  28. create table spj (
  29.   sno       char(5) not null,
  30.   pno       char(6) not null,
  31.   jno       char(4) not null,
  32.   qty       integer,
  33.   unique (sno, pno, jno)
  34. );
  35.